﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AyFrame.DbEntity.Models;
using AyFrame.Dto;

namespace AyFrame.WebApi.Configs
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<Area, AreaView>();
            CreateMap<AreaUpdateDto, Area>();

            #region 系统配置

            CreateMap<OcelotGatewayCreateDto, OcelotGateway>();
            CreateMap<OcelotGatewayUpdateDto, OcelotGateway>();
            CreateMap<OcelotGateway, OcelotGatewayView>();
            #endregion
        }
    }
}
